import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/Login.vue'),
    },
    {
      path: '/Main',
      name: 'Main',
      component: () => import('../views/Main.vue'),
      children:[
        {
          path: '/AuditShow',
          name: 'AuditShow',
          component: () => import('../views/AuditShow.vue'),
        },
        {
          path: '/InstanceShow',
          name: 'InstanceShow',
          component: () => import('../views/InstanceShow.vue'),
        },
        {
          path: '/DefinitionShow',
          name: 'DefinitionShow',
          component: () => import('../views/DefinitionShow.vue'),
        }
      ]
    },
  ],
})

export default router
